package com.hefei.hight.proxy.base;

/**
 * @author caizhengjun
 * @date 2020/9/5 2:38 下午
 */
public class UserDaoProxy implements IUserDao {

    private UserDao target;

    public UserDaoProxy(UserDao target) {
        this.target = target;
    }

    @Override
    public void save() {

        System.out.println("开启事物");
        target.save();
        System.out.println("提交事物");
    }
}
